home *** CD-ROM | disk | FTP | other *** search
- Path: news.infi.net!usenet
- From: nngis@norfolk.infi.net (Greg DiGiorgio)
- Newsgroups: comp.lang.c
- Subject: Re: An incredably dumb question
- Date: 14 Jan 1996 23:59:30 GMT
- Organization: Customer of InfiNet
- Message-ID: <4dc5d2$13m@news.infi.net>
- References: <4d8tlk$pgk@ccnet3.ccnet.com>
- NNTP-Posting-Host: h-langoliers.norfolk.infi.net
- Mime-Version: 1.0
- X-Newsreader: WinVN 0.99.3
-
- In article <4d8tlk$pgk@ccnet3.ccnet.com>, felinoid@ccnet.com says...
- >
- > and I should be able to figure it out myself....
- >But I can't.....
-
- *** So? That's what everyone is here for. You give it a shot and then
- *** ask.
-
- >
- > I am learninf C (Already got the FAQ) also make use of old 3b2
-
- *** Good thing that you got the FAQ, anyway.
-
- >programming manuals and "Teach yourself C"
- > But with all that I STILL can't figure this out...
- >
- > Here is my question....
- >I am looking for an alternitive to getc() I want to read carciters
- >as they are entered NOT after the user hits return.
- >I feal so stupid that I can't find it myself or figure it out...
-
- *** You're teaching yourself 'C' and come up against something you can
- *** not figure out without help? That doesn't make you stupid. In fact,
- *** if 1/2 of the people I work with would ask others how to resolve
- *** problems, we would not have as many problems to contend with.
-
- >Must be right under my nose... or I'd have it by now...
-
- *** Well, if it was a snake, it would still be hidden. So... what you
- *** want to do is platform specific. That is, you want to read each
- *** character as it is typed, not after the user presses <ENTER>.
- *** With Turbo or Borland C/C++, the function you want is "getch". It
- *** is prototyped in "conio.h" which is where all OS-specific console i/o
- *** functions go. If you're not using Borland, I don't know what MS calls
- *** it. If you're not programming MS-DOS, then I can't help either.
-
-
- >Jeff
- >--
- >felinoid@ccnet.com
- >http://www.ccnet.com/~felinoid/
-
-